<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>转账汇款</title>
    <script th:src="@{/js/jquery.js}"></script>
    <script th:src="@{/js/layui.js}"></script>
    <link rel="stylesheet" type="text/css" th:href="@{/css/layui.css}">
    <style>
        form{
            margin-top: 50px;
            padding: 50px;
        }
    </style>
    <script>
        function check(){
            if ([[${session.user.is_cold}]] == 1){
                alert("您的账号已冻结！无法进行此操作。");
                return false;
            }
        }
    </script>
</head>
<body>
    <form class="layui-form" onsubmit="return check()" th:action="@{/transfermoney}" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label layui-col-xs5">汇款账户名：</label>
            <div class="layui-input-block layui-col-xs7">
                <input type="text" name="tousername" required  lay-verify="required" placeholder="请输入要汇款的账户名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-col-xs5">汇款金额：</label>
            <div class="layui-input-block layui-col-xs7">
                <input type="text" maxlength="9" oninput = "value=value.replace(/[^0-9.]/g,'')" name="money" required  lay-verify="required" placeholder="请输入汇款金额" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
        <div class="layui-bg-gray">
            <p style="font-size: 30px" th:text="${transfermoneymsg}"></p>
        </div>
    </form>
</body>
</html>